<div>
	<?php 
    if(isset($result) && $result != ''){
        
		$error = $result;
		
		$errorDividido = explode("/", $result);
        if (count($errorDividido) > 1) {
			$nroError = $errorDividido[0];
			
			if(is_numeric($nroError)) {
				switch($nroError)
				{
					case 1044:
						$error = 'Access denied for user.';
						break;
					case 1263:
					case 1264:
					case 1265:
						$error = 'Data truncated.';
						break;
					case 1451:
					case 1452:
						$error = 'There are records that depend on the current.';
						break;							
					default: 
						$error = $result;
						break;
				}
			}
		}
		else $error = $result;
		
		echo $error;
    }
    ?>
</div>